package com.syher.util.excel.node;

import com.syher.util.excel.POIUtil;
import org.apache.poi.ss.usermodel.CellStyle;

public class HeaderNode {

    private String value;
    private int firstRow;
    private int lastRow;
    private int firstCol;
    private int lastCol;
    private CellStyle style;

    public HeaderNode(String value, int firstRow, int lastRow, int firstCol, int lastCol) {
        this.value = value;
        this.firstRow = firstRow;
        this.lastRow = lastRow;
        this.firstCol = firstCol;
        this.lastCol = lastCol;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String name) {
        this.value = name;
    }

    public int getFirstRow() {
        return firstRow;
    }

    public void setFirstRow(int firstRow) {
        this.firstRow = firstRow;
    }

    public int getLastRow() {
        return lastRow;
    }

    public void setLastRow(int lastRow) {
        this.lastRow = lastRow;
    }

    public int getFirstCol() {
        return firstCol;
    }

    public void setFirstCol(int firstCol) {
        this.firstCol = firstCol;
    }

    public int getLastCol() {
        return lastCol;
    }

    public void setLastCol(int lastCol) {
        this.lastCol = lastCol;
    }

    public CellStyle getStyle() {
        return style;
    }

    public HeaderNode setStyle(CellStyle style) {
        this.style = style;
        return this;
    }
}
